package com.wenge.datagroup.storage.service;

public class TransformServiceFactory {
    private TransformServiceFactory serviceFactory = new TransformServiceFactory();

    TransformServiceFactory() {
    }

    public TransformServiceFactory getFactory() {
        return serviceFactory;
    }

    public static TransformService getInstance(String info) {
        TransformService transformService = null;
        try {
            Class clazz = Class.forName(info);
            Object obj = clazz.newInstance();
            transformService = (TransformService) obj;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return transformService;
    }

}
